import React from 'react';
import { Image } from 'antd';

export default ({ menu, selectedKeys }) => {
  return (
    <Image
      preview={false}
      src={
        selectedKeys == menu.key
          ? require(`@/images/${menu.name}_hover.png`)
          : require(`@/images/${menu.name}_normal.png`)
      }
    ></Image>
  );
};
